#include"processbar.h"
#include<unistd.h>
void download(){
    int target=1000;
    int cur=0;
    while(cur<=target){
        processbar(cur*100/target);
        cur+=10;
        usleep(50000);
    }
    printf("\n");
}
int main(){
    printf("download1\n");
    download();
    initbar();
    printf("download2\n");
    download();
    initbar();
    printf("download3\n");
    download();
    initbar();
    printf("download4\n");
    download();
    initbar();

    return 0;
}
